<?php
header("content-type:text/html;charset=utf-8");
include "../config/mysql.php";
session_start();
if(isset($_SESSION['username'])){

 $id=$_GET["id"];


$tr=$pdo->exec("delete from user where id='$id'");

if($tr){
	header("refresh:1;url=../index.php");
   	print('删除成功，请稍等...<br>');
}else{
	header("refresh:1;url=../index.php");
   	print('删除失败,正在返回上一页,请稍等...<br>');
}

}else{
	header("Location:../log.php");
      exit();
}

?>